package com.kyub.spring.gears.services.impl;

import com.kyub.spring.gears.services.DaoFactory;
import com.kyub.spring.gears.services.DaoService;

import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: sreghenzi
 * Date: 3-apr-2009
 * Time: 11.49.44
 * To change this template use File | Settings | File Templates.
 */
public class DaoFactoryImpl implements DaoFactory {

    private Map<String,DaoService> daos;

    public DaoFactoryImpl() {
    }

    public DaoFactoryImpl(Map<String, DaoService> daos) {
        this.daos = daos;
    }

    public Map<String, DaoService> getDaos() {
        return daos;
    }

    public void setDaos(Map<String, DaoService> daos) {
        this.daos = daos;
    }

    public DaoService getDao(String c) {
        return daos.get(c);
    }
}
